package com.lagou.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName: UserClient
 * @Auther: Jerry
 * @Date: 2020/10/27 18:00
 * @Desctiption: UserClient接口
 * @Version: 1.0
 */
@FeignClient(value = "lagou-service-user", path = "/user", fallback = UserFallback.class)
public interface UserClient {

    @RequestMapping("/info/{token}")
    String info(@PathVariable("token") String token);
}
